﻿<Window x:Class="Milestone.Presentation.ProjectEditorView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:markup="http://schemas.topics.it/wpf/radical/windows/markup"
             xmlns:behaviors="http://schemas.topics.it/wpf/radical/windows/behaviors"
        Title="ProjectEditorView" Height="300" Width="300">
    <Grid>
        <TextBox behaviors:CueBannerService.CueBanner="Set the project name..."
                 Text="{markup:EditorBinding Path=ProjectName}"
                 HorizontalAlignment="Left"
                 Margin="10,10,0,0"
                 TextWrapping="NoWrap" 
                 VerticalAlignment="Top"
                 Width="156"/>

        <TextBox behaviors:AutoComplete.UserText="{markup:EditorBinding Path=UserText}"
				 behaviors:AutoComplete.Source="{Binding Path=Data}"
                 behaviors:AutoComplete.ImplicitItemsFilter="Disabled"
				 behaviors:AutoComplete.ChoosenItem="{markup:ChoosenItemBinding Path=Choosen}"
                 behaviors:CueBannerService.CueBanner="Choose customer..."
				 VerticalAlignment="Top" Margin="10,37,0,0" HorizontalAlignment="Left" Width="156">
            <behaviors:AutoComplete.ItemTemplate>
                <DataTemplate>
                    <TextBlock Text="{Binding Path=DisplayName}" />
                </DataTemplate>
            </behaviors:AutoComplete.ItemTemplate>
        </TextBox>
        <TextBox behaviors:CueBannerService.CueBanner="Set the default daily rate..."
                 Text="{markup:EditorBinding Path=DefaultDailyRate}"
                 HorizontalAlignment="Left"
                 TextAlignment="Right"
                 Margin="10,64,0,0"
                 TextWrapping="NoWrap" 
                 VerticalAlignment="Top"
                 Width="156"/>

        <Button Content="Button" 
                Command="{markup:AutoCommandBinding Path=Save}"
                HorizontalAlignment="Left" 
                Margin="199,230,0,0" 
                VerticalAlignment="Top" Width="75"/>
    </Grid>
</Window>
